import { request } from "@/utils/service"
export function selectPage(data) {
    return request({
        url: '/smalladmin/numberA/select/page',
        method: 'POST',
        data
    })
}

export function insert(data) {
    return request({
        url: '/smalladmin/numberA/insertOrUpdate',
        method: 'POST',
        data
    })
}
export function batchDelete(data) {
    return request({
        url: '/smalladmin/numberA/deleteBatch',
        method: 'POST',
        data
    })
}
export function saveBatch(data) {
    return request({
        url: '/smalladmin/numberA/addList',
        method: 'POST',
        data
    })
}

export function isApply() {
    return request({
        url: '/smalladmin/numberA/isApply',
        method: 'POST',
    })
}
export function apply() {
    return request({
        url: '/smalladmin/numberA/apply',
        method: 'POST',
    })
}

export function getAGroup() {
    return request({
        url: '/smalladmin/numberA/getAGroup',
        method: 'POST',
    })
}

export function saveMutiCount(params) {
    return request({
        url: '/smalladmin/numberA/saveMutiCount',
        method: 'GET',
        params
    })
}

export function getMutiCount(params) {
    return request({
        url: '/smalladmin/numberA/getMutiCount',
        method: 'GET',
        params
    })
}

export function uploadFileWithTel(data) {
    return request({
        url: '/smalladmin/numberA/uploadFileWithTel',
        method: 'POST',
        data
    })
}

export function exportTelA(params) {
    return request({
        url: '/smalladmin/numberA/exportTelA',
        method: 'POST',
        params,
        responseType: 'arraybuffer'
    })
}

export function getUseTimes() {
    return request({
        url: '/smalladmin/numberA/getUseTimes',
        method: 'GET',
    })
}
